/**
 * 全局变量
 */
export default {
    namespace: 'true',
    state() {
        return {
            /**
             * info信息
             */
            info: {
                company: 'XXXX公司',
                version: '1.0.0',
                copyright: 'XXX  All rights reserved.',
                copyrightYear: '©2021-2022',
                email: ''
            }
        }
    },
    mutations: {
        save(state, info) {
            state.info = info;
        }
    },
    actions: {
        update(context, info) {
            context.commit("info", info)
        }
    },
    getters: {
        info(state) {
            return state.info;
        }
    }
}